package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.model.dto.BasePayDTO;
import com.cloudfun.campusshare.entity.OrderEntity;
import com.cloudfun.campusshare.entity.OrderRefundEntity;

/**
 * Created by Huqin on 2020/7/31
 */
public interface PayService {

    /**
     * 是否支持支付该订单
     *
     * @param orderEntity
     * @return
     */
    boolean support(OrderEntity orderEntity);

    /**
     * 订单支付
     *
     * @param orderEntity
     */
    BasePayDTO payOrder(OrderEntity orderEntity);

    /**
     *  退款
     */
    void refund(OrderRefundEntity refundEntity);

}
